<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
    <script>
        let arr = new Array();
        console.log(arr);

        arr[0] = 12;
        console.log(arr);

        let  array = [12,23,34,'HEELO',true,null,undefined];
        console.log(array);

        console.log(array[8]);   //打印undefined

        array[10] = 100;
        console.log(array);

        var arrs = ['小猪佩奇', '小猪乔治', '小羊苏西'];
        console.log(arrs);
        console.log(arrs[0]);
        console.log(arrs[1]);
        console.log(arrs[2]);
        arrs[2] = '小猫凯迪';
        console.log(arrs);

    </script>
</head>
<body>
    
</body>
</html>